package view;

import javax.swing.*;
import java.awt.*;

public class MainView {

	JTabbedPane tabs;
	
	public MainView(){

		tabs = new JTabbedPane();
		
        JFrame frame = new JFrame("Vestbjerg Byggecenter");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setResizable(false);
        //Add content to the window.
        frame.add(tabs, BorderLayout.CENTER);

        tabs.addTab("Customers", new CustomerTab());
        tabs.addTab("Orders", new OrderTab());
        tabs.addTab("Storage", new StorageTab());
        tabs.addTab("Suppliers", new SupplierTab());

        //Display the window.
        frame.pack();
        frame.setSize(600, 600);
        frame.setVisible(true);
	}
}
